package server

import (
	"code-sandbox/src/main/controller"
	"github.com/gin-gonic/gin"
)

func RunApplication() error {
	engine := gin.Default()
	engine.POST("/", controller.RunGoCode)

	err := engine.Run(":9090")
	if err != nil {
		return err
	}
	return nil
}
